from django.db import models
from datetime import datetime

# Create your models here.
class Photos(models.Model):
    title=models.CharField(max_length=32)
    photoUrl = models.CharField(max_length=500)
    updateTime = models.DateTimeField(default=datetime.now)

class Meta:
    db_table="photos" # 指定表名
